package com.nlp.server.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * 回话消息返回对象
 * @author shiliuyinzhen
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class ChatBaseMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 问题 */
    private String query;

    /** 回答 */
    private String answer;

    @Override
    public String toString() {
//        return "[" +
//                "query=\"" + query + '\"' +
//                ", answer=\"" + answer + '\"' +
//                ']';
        return "\"" + query + '\"' + ", \"" + answer + '\"';
    }
}
